﻿<!--
Filename: SilverNews/Themes/Generic.xaml
Version: 20140311
-->

<ResourceDictionary
 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
>

  <DataTemplate x:Key="NewsItem">
    <StackPanel Orientation="Vertical">
 
      <HyperlinkButton
        Content="{Binding Title.Text}"
        NavigateUri="{Binding Links[0].Uri}"
        TargetName="_blank"
        FontWeight="Black"
        /> <!-- TargetName="_blank" is needed on Windows Phone -->
      
      <!-- //REMOVED, SHOWS HTML THAT WOULD NEED PARSING TO GET THE TEXT
      <TextBlock
        Text="{Binding Summary.Text}"
        FontWeight="Normal"
        />
      --> 

      <TextBlock
        Text="{Binding PublishDate.LocalDateTime, StringFormat='yyyy-MM-dd, HH:mm'}"
        FontStyle="Italic"
        />
      
      <!--
      <HyperlinkButton
        Content="Read more..."
        NavigateUri="{Binding Links[0].Uri}"
        TargetName="_blank"
        />
      -->
      
    </StackPanel>
  </DataTemplate>

</ResourceDictionary>
